<!DOCTYPE html>
<html lang='en'>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>{% block title %}{% endblock %} - MirrorManager</title>
    <link rel="shortcut icon" type="image/vnd.microsoft.icon"
        href="{{ url_for('static', filename='favicon.ico')}}"/>
        <link href="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.2/fedora-bootstrap.css"
              type="text/css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" media="screen"
        href="{{ url_for('static', filename='mirrormanager2.css') }}"/>
    <link href="https://apps.fedoraproject.org/global/fedora-bootstrap-fonts/hack.css" type="text/css" rel="stylesheet" />
    <link href="https://apps.fedoraproject.org/global/fedora-bootstrap-fonts/open-sans.css" type="text/css" rel="stylesheet" />
    <link href="https://apps.fedoraproject.org/global/fedora-bootstrap-fonts/font-awesome.css" type="text/css" rel="stylesheet" />
    {% block header %}{% endblock %}
  </head>
  <body id="{% block tag %}{% endblock %}">
    <div class="masthead">
      <div class="container">
          <div class="row">
              <div class="col-sm-3">
                <a href="{{url_for('index')}}">
                  <img src="{{ url_for('static', filename='mirrormanager-logo.png') }}"
                    alt="MirrorManager Logo" height=40px />
                </a>
              </div>
              <div class="col-sm-9">
                  <nav class="navbar navbar-light p-0 float-xs-right">
                      <ul class="nav navbar-nav">
                          <li class="nav-item">
                              <a class="nav-link" href="{{url_for('list_mirrors')}}">Mirrors</a>
                          </li>
                          {% if config['SHOW_STATISTICS'] %}
                          <li class="nav-item"><a class="nav-link" href="{{url_for('statistics')}}">Statistics</a></li>
                          {% endif %}
                          {% if config['SHOW_MAPS'] %}
                          <li class="nav-item"><a class="nav-link" href="{{url_for('maps')}}">Maps</a></li>
                          {% endif %}
                          {% if config['SHOW_PROPAGATION'] %}
                          <li class="nav-item"><a class="nav-link" href="{{url_for('propagation')}}">Propagation</a></li>
                          {% endif %}

                          {% block loginstatus %}
                          {% endblock %}
                      </ul>
                  </nav>
                </div>
            </div>
        </div>
    </div>

        <div class="bodycontent pt-2">
          <div class="container">

            {% with messages = get_flashed_messages(with_categories=true) %}
                {% if category, messages %}
                <ul id="flashes">
                    {% for category, message in messages %}
                    <li class="{{ category }}">{{ message }}</li>
                    {% endfor %}
                </ul>
                {% endif %}
            {% endwith %}

            {% block content %}{% endblock %}
          </div>
        </div>

        <div class="footer py-3 text-xs-center">
          <span class="text-muted">
          Copyright &copy; 2014-2017 Red Hat
          <a href="https://github.com/fedora-infra/mirrormanager2/">mirrormanager</a>
          -- {{version}}
          -- <a href="http://mirrormanager.rtfd.org" rel="noopener noreferrer"
                target="_blank">Documentation</a>
          -- <a href="http://mirrormanager.readthedocs.org/en/latest/contributors.html">Authors</a>
        </span>
        </div>


    {% block jscripts %}
    <script type="text/javascript"
        src="{{ url_for('static', filename='jquery-1.11.2.min.js') }}"></script>

    <script type="text/javascript" src="https://apps.fedoraproject.org/global/fedora-bootstrap-1.0.2/fedora-bootstrap.js">
    </script>

    {% endblock %}
</body>
</html>
